﻿using System;
using System.Configuration;

namespace Xwltz.Standard.Framework
{
    public static class FrameworkConfigs
    {
        #region 框架级配置项
        /// <summary>
        /// 框架版本好
        /// </summary>
        public static string Version = "1.2.0.0";
        /// <summary>
        /// 登陆信息有效期
        /// </summary>
        public static int LoginExpireDaysProp = 365;

        /// <summary>
        /// 系统秘钥
        /// </summary>
        public static string Key = "XwLtz";

        /// <summary>
        /// 数据库连接字符串
        /// </summary>
        //public static string ConnectionString = ConfigHelper.GetValue("SqlServerStr");
        public static string ConnectionString = ConfigurationManager.ConnectionStrings["SqlServerStr"].ToString();
        //public static string ConnectionString = "Data Source = 192.168.11.5;Initial Catalog = test;User Id = sa;Password = ok;";

        #endregion

        #region 百度统计API配置项
        /// <summary>
        /// 登陆地址
        /// </summary>
        public const string LoginUrl = "https://api.baidu.com/sem/common/HolmesLoginService";
        /// <summary>
        /// 报告地址
        /// </summary>
        public const string ReportUrl = "https://api.baidu.com/json/tongji/v1/ReportService";
        /// <summary>
        /// 用户名
        /// </summary>
        public const string UserName = "wstxgzz7";
        /// <summary>
        /// 密码
        /// </summary>
        public const string Password = "VLwstx15963";
        /// <summary>
        /// Token
        /// </summary>
        public const string Token = "388d77a58cfe248158d7792c8bf1a3e8";
        /// <summary>
        /// UUID
        /// </summary>
        public static string Uuid => Guid.NewGuid().ToString("N").ToUpper();
        /// <summary>
        /// 账户类型
        /// </summary>
        public const string AccountType = "1";
        #endregion

        #region 阿里云通用配置项
        /// <summary>
        /// AccessKeyId
        /// </summary>
        public static string AccessKeyId = "LTAIzQfxgKR6iyne";
        /// <summary>
        /// AccessKeySecret
        /// </summary>
        public static string AccessKeySecret = "sgYFDe5PStF1mUasP8DiVc8S3dJxj2";

        #endregion

        #region 阿里云对象存储配置项

        public static string EndPoint = "oss-cn-shanghai.aliyuncs.com";
        public static string DirToDownload = "";
        public static string FileToUpload = "";
        public static string BigFileToUpload = "";
        public static string ImageFileToUpload = "";
        public static string CallbackServer = "";

        #endregion

        #region 阿里大于短信服务配置项

        /// <summary>
        /// 短信API产品名称
        /// </summary>
        public static string Product = "Dysmsapi";
        /// <summary>
        /// 短信API产品域名
        /// </summary>
        public static string Domain = "dysmsapi.aliyuncs.com";
        /// <summary>
        /// 短信签名
        /// </summary>
        public static string SignName = "毕业设计登陆验证码";
        /// <summary>
        /// 短信模板
        /// </summary>
        public static string TemplateCode = "SMS_71340386";

        #endregion
    }
}
